<!DOCTYPE html>
<html lang="en">
{include file="public/head" /}
<link href="__ADMIN__/vendors/jquery-ui/jquery-ui.min.css" rel="stylesheet">
  <body class="nav-md">
    <div class="container body">
      <div class="main_container">
        <!-- menu -->
        {include file="public/menu" /}
        <!-- menu -->
        <!-- top navigation -->
        {include file="public/top" /}
        <!-- /top navigation -->

        <!-- page content -->
        <div class="right_col" role="main">
          <div class="">
            <div class="page-title">
              <div class="title_left">
                <h3>订单管理</h3>
              </div>
            </div>
            <div class="clearfix"></div>
            <div class="row">
              <div class="col-md-12 col-sm-12 col-xs-12">
                <!--content-->
                <div class="x_panel">
                  <div class="x_title">
                    <h2>编辑订单 <small>edit order</small></h2>
                    
                    <div class="clearfix"></div>
                  </div>
                  <div class="x_content">
                    <br>
                    <form data-parsley-validate="" class="form-horizontal form-label-left" novalidate="" enctype="multipart/form-data" method="post" action="{:url('admin/Order/edit')}">
                        <input type="hidden" name="id" class="form-control" value="{$order.id}">
                      <div class="form-group">
                        <label class="control-label col-md-3 col-sm-3 col-xs-12">订单编号 <span class="required">*</span>
                        </label>
                        <div class="col-md-6 col-sm-6 col-xs-12">
                          <input type="text" class="form-control col-md-7 col-xs-12" name="order_num" value="{$order.order_num}" readonly="readonly">
                        </div>
                      </div>
                      <input type="hidden" name="member_id" class="form-control member_id" value="{$order.member_id}">
                      <div class="form-group">
                        <label class="control-label col-md-3 col-sm-3 col-xs-12">店员名称 <span
                                class="required">*</span>
                        </label>
                        <div class="col-md-6 col-sm-6 col-xs-12">
                          <div class="input-group">
                            <input type="text" name="member_name" required="required"
                                   class="form-control col-md-4 col-xs-6 member_name" value="{$order.member_name}">
                            <span class="input-group-btn">
                            <button type="button" class="btn btn-success check_name_button">验证</button>
                          </span>
                          </div>
                        </div>
                      </div>
                      {eq name="order.origin" value="0"}
                      <div class="form-group">
                        <label class="col-sm-3 control-label">客户头像：</label>
                        <div class="col-sm-2">
                          <img src="{$order.user.headpic}" alt="" class="img-circle img-responsive"
                               style="width: 60px;height: 60px;">
                        </div>
                      </div>
                      <div class="form-group">
                        <label class="control-label col-md-3 col-sm-3 col-xs-12">客户昵称：<span
                                class="required">*</span>
                        </label>
                        <div class="col-md-6 col-sm-6 col-xs-12">
                          <input type="text" required="required"
                                 class="form-control col-md-7 col-xs-12" value="{$order.user.nickname}" readonly="readonly">
                        </div>
                      </div>
                      {/eq}
                      <div class="form-group">
                        <label class="col-sm-3 control-label">订单类型：</label>
                        <div class="col-sm-2">
                          {UntilTag:ordertype type="order.type"/}
                        </div>
                      </div>
                      <div class="form-group">
                        <label class="col-sm-3 control-label">服务类型：</label>
                        <div class="col-sm-2">
                          {UntilTag:servicetype type="order.service"/}
                        </div>
                      </div>
                      <div class="form-group">
                        <label class="col-sm-3 control-label">服务项目：</label>
                        <div class="col-sm-2">
                          <select class="form-control item_type" name="item" style="width:auto;">
                            <option value="{$order.item}" selected>{$order.item_name}</option>
                          </select>
                        </div>
                      </div>
                      <div class="form-group">
                        <label class="control-label col-md-3 col-sm-3 col-xs-12">价格 <span
                                class="required">*</span>
                        </label>
                        <div class="col-md-6 col-sm-6 col-xs-12">
                          <input type="number" name="money" required="required"
                                 class="form-control col-md-7 col-xs-12 money" value="{$order.money}">
                        </div>
                      </div>
                      <div class="form-group">
                        <label class="col-sm-3 control-label">订单来源：</label>
                        <div class="col-sm-2">
                          {UntilTag:orderorigin type="order.origin"/}
                        </div>
                      </div>
                      <div class="form-group">
                        <label class="control-label col-md-3 col-sm-3 col-xs-12">联系方式 <span
                                class="required">*</span>
                        </label>
                        <div class="col-md-6 col-sm-6 col-xs-12">
                          <input type="text" name="user_contact" required="required"
                                 class="form-control col-md-7 col-xs-12" value="{$order.user_contact}">
                        </div>
                      </div>
                      <div class="form-group">
                        <label class="control-label col-md-3 col-sm-3 col-xs-12">客户留言</label>
                        <div class="col-md-6 col-sm-6 col-xs-12">
                          <textarea name="user_message" class="form-control col-md-7 col-xs-12">{$order.user_message}</textarea>
                        </div>
                      </div>
                      <div class="form-group">
                        <label class="control-label col-md-3 col-sm-3 col-xs-12">订单备注</label>
                        <div class="col-md-6 col-sm-6 col-xs-12">
                          <textarea name="remark" class="form-control col-md-7 col-xs-12">{$order.remark}</textarea>
                        </div>
                      </div>

                      <div class="form-group">
                          <label class="col-sm-3 control-label">订单状态：</label>
                          <div class="col-sm-2">
                              {UntilTag:orderstatus id="order.id" status="order.status"/}
                          </div>
                      </div>

                      <div class="ln_solid"></div>
                      <div class="form-group">
                        <div class="col-md-6 col-sm-6 col-xs-12 col-md-offset-3">
                          <button type="submit" class="btn btn-success">编辑订单</button>
                        </div>
                      </div>

                    </form>
                  </div>
                </div>
                <!--content-->
              </div>
            </div>
          </div>
        </div>
        <!-- /page content -->
        <!-- footer content -->
        {include file="public/footer" /}
        <!-- /footer content -->
      </div>
    </div>
    <!-- script -->
    <!-- jQuery -->
    <script src="__ADMIN__/vendors/jquery/dist/jquery.min.js"></script>
    <!-- Bootstrap -->
    <script src="__ADMIN__/vendors/bootstrap/dist/js/bootstrap.min.js"></script>
    <!-- FastClick -->
    <script src="__ADMIN__/vendors/fastclick/lib/fastclick.js"></script>
    <!-- NProgress -->
    <script src="__ADMIN__/vendors/nprogress/nprogress.js"></script>
    <!-- Custom Theme Scripts -->
    <script src="__ADMIN__/build/js/custom.min.js"></script>
    <!-- script -->
    <script src="__ADMIN__/vendors/jquery-ui/jquery-ui.min.js"></script>
    <script src="__ADMIN__/vendors/layer/layer.min.js"></script>
    <script src="__ADMIN__/build/js/app.js"></script>
  </body>
  <script type="text/javascript">
    var get_member_url = "{:url('admin/Member/getMemberByName')}";
    var get_item_url = "{:url('admin/Api/getServiceItem')}";

    var mode = 'edit';

    $(function(){
    });

  </script>
</html>
